<template>
  <div class="xy-search mgb15 clearfix" @keyup.enter="$emit('enter')">
    <div class="xy-search-left">
      <slot></slot>
    </div>
    <div class="xy-search-right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Search'
}
</script>
<style lang="scss" scoped>
@import '../assets/scss/variable.scss';
.xy-search {
  position: relative;
  background: $xy-border-color-extra-light;
  display:flex;
  align-items:center;
  &-left {
    width: calc((100% - 205px));
    padding: 15px 0 0px 15px;
    float: left;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
  &-right {
    width: 205px;
    padding: 15px;
    float: right;
    margin: auto;
  }
}
</style>
